import java.util.Vector;
public class insert {
	public static void main(String[] args){      
	Vector<Integer> vec = new Vector<Integer>(4);
vec.add(0,4);
vec.add(1,3);
vec.add(2,2);
vec.add(3,5);
vec.add(4,9);
vec.add(5,6);
vec.add(6,4);
vec.add(7,1);
System.out.println("Added numbers are :- "); 
for (Integer number : vec) {         
System.out.println("Index :"+vec.indexOf(number) +" Number: " + number);
}	      	      
vec.add(5,10);	      
System.out.println("Added numbers after insertion are :- "); 
for (Integer number : vec) {         
System.out.println("Index :"+vec.indexOf(number) +" Number: " + number);
}
}  
}



